/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui.gui.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JFrame;

import ui.gui.dialogs.settings.Settings;

/**
 *
 * @author stephane
 */

public class ShowSettings extends AbstractAction
{
    private static final long serialVersionUID = 1L;
    private JFrame _parent= null;
    public ShowSettings(JFrame parent)
    {
        super("Settings", new javax.swing.ImageIcon(ShowSettings.class.getResource("/resources/workspaceIcon.png")));
        putValue(SHORT_DESCRIPTION, "show settings dialog"); 
        this._parent = parent;
    }
    
        
    @Override
    public void actionPerformed(ActionEvent e) {
       new Settings(this._parent, true).setVisible(true);
    }
    
}